$.ajax({
    url:'roomInfomation',
    type:'POST',
    cache:false,
    dataType:'json',
    success:function(data){
        console.log(data.roomList);
        var roomList = data.roomList;

        for(var i=0;i<roomList.length;i++){
            if(roomList[i].status == "1"){
                document.getElementById(roomList[i].roomNum).style.backgroundColor=" #faa046";
            }
        }
    },
    error:function(){
        alert("请刷新网络")
    }
});
     
 